//
//  ByViewLocationCityReusableHeader.m
//  mijifen_ios
//
//  Created by 朱凯 on 2017/10/30.
//  Copyright © 2017年 itboye. All rights reserved.
//

#import "ByViewLocationCityReusableHeader.h"

@implementation ByViewLocationCityReusableHeader
{
    UILabel *_titleLabel;
}
- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        
        [self setupUI];
    }
    return self;
}
- (void)setupUI {
    
    _titleLabel = [[UILabel alloc] init];
    _titleLabel.numberOfLines = 0;
    _titleLabel.text = @"";
    _titleLabel.font = FONT(14);
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    _titleLabel.textColor = [UIColor lightGrayColor];
    [self addSubview:_titleLabel];
    
    [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self).insets(UIEdgeInsetsMake(0, 8, 0, 8));
    }];
}

- (void)setTitle:(NSString *)title {
    
    _title = title;
    
    _titleLabel.text = _title;
}
@end
